package top.continew.admin.system.model.resp;

import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import top.continew.starter.security.crypto.annotation.FieldEncrypt;

import java.util.List;

/**
 * @ClassName WxLoginResp
 * @Description 获取用户信息
 * @Author kellen
 * @Date 2025/6/25 21:47
 */
@Data
@Schema(description = "登录用户信息")
public class ApiUserInfoResp {

    /**
     * 用户名
     */
    @Schema(description = "用户名", example = "zhangsan")
    @ExcelProperty(value = "用户名", order = 2)
    private String username;

    /**
     * 昵称
     */
    @Schema(description = "昵称", example = "张三")
    @ExcelProperty(value = "昵称", order = 3)
    private String nickname;

    /**
     * 状态
     */
    @Schema(description = "状态", example = "1")
    private Integer status;

    /**
     * 性别
     */
    @Schema(description = "性别", example = "1")
    private Integer gender;

    /**
     * 手机号码
     */
    @Schema(description = "手机号码", example = "13811111111")
    @ExcelProperty(value = "手机号码", order = 10)
    @FieldEncrypt
    private String phone;

    /**
     * 邮箱
     */
    @Schema(description = "邮箱", example = "123456789@qq.com")
    @ExcelProperty(value = "邮箱", order = 11)
    @FieldEncrypt
    private String email;

    /**
     * 描述
     */
    @Schema(description = "描述", example = "张三描述信息")
    @ExcelProperty(value = "描述", order = 13)
    private String description;

    /**
     * 头像地址
     */
    @Schema(description = "头像地址", example = "https://himg.bdimg.com/sys/portrait/item/public.1.81ac9a9e.rf1ix17UfughLQjNo7XQ_w.jpg")
    private String avatar;

    /**
     * 微信openId
     */
    @Schema(description = "微信openId", example = "openId")
    public String openId;
    /**
     * 微信模板id
     */
    @Schema(description = "微信模板id", example = "openId")
    private List<String> templateIds;

    /**
     * 是否已订阅微信消息，0-否，1-是
     */
    @Schema(description = "是否已订阅微信消息", example = "1")
    private Integer subscribeWechatMsg;

}
